<?php
class Zend_Lvl_Convertvitoen{
 public function convert_vi_to_en($str) {
    	$str = preg_replace("/(Ã |Ã¡|áº¡|áº£|Ã£|Ã¢|áº§|áº¥|áº­|áº©|áº«|Äƒ|áº±|áº¯|áº·|áº³|áºµ)/", 'a', $str);
    	$str = preg_replace("/(Ã¨|Ã©|áº¹|áº»|áº½|Ãª|á»�|áº¿|á»‡|á»ƒ|á»…)/", 'e', $str);
    	$str = preg_replace("/(Ã¬|Ã­|á»‹|á»‰|Ä©)/", 'i', $str);
    	$str = preg_replace("/(Ã²|Ã³|á»�|á»�|Ãµ|Ã´|á»“|á»‘|á»™|á»•|á»—|Æ¡|á»�|á»›|á»£|á»Ÿ|á»¡)/", 'o', $str);
    	$str = preg_replace("/(Ã¹|Ãº|á»¥|á»§|Å©|Æ°|á»«|á»©|á»±|á»­|á»¯)/", 'u', $str);
    	$str = preg_replace("/(á»³|Ã½|á»µ|á»·|á»¹)/", 'y', $str);
    	$str = preg_replace("/(Ä‘)/", 'd', $str);
    	$str = preg_replace("/(Ã€|Ã�|áº |áº¢|Ãƒ|Ã‚|áº¦|áº¤|áº¬|áº¨|áºª|Ä‚|áº°|áº®|áº¶|áº²|áº´)/", 'A', $str);
    	$str = preg_replace("/(Ãˆ|Ã‰|áº¸|áºº|áº¼|ÃŠ|á»€|áº¾|á»†|á»‚|á»„)/", 'E', $str);
    	$str = preg_replace("/(ÃŒ|Ã�|á»Š|á»ˆ|Ä¨)/", 'I', $str);
    	$str = preg_replace("/(Ã’|Ã“|á»Œ|á»Ž|Ã•|Ã”|á»’|á»�|á»˜|á»”|á»–|Æ |á»œ|á»š|á»¢|á»ž|á» )/", 'O', $str);
    	$str = preg_replace("/(Ã™|Ãš|á»¤|á»¦|Å¨|Æ¯|á»ª|á»¨|á»°|á»¬|á»®)/", 'U', $str);
    	$str = preg_replace("/(á»²|Ã�|á»´|á»¶|á»¸)/", 'Y', $str);
    	$str = preg_replace("/(Ä�)/", 'D', $str);
    	//$str = str_replace(" ", "-", str_replace("&*#39;",",$str));
    	return $str;
    }
}